package pro.lingwu.rainbowmall.dto

import org.jetbrains.annotations.NotNull
import javax.validation.constraints.Email
import javax.validation.constraints.Pattern

/**
 * For the table `user`, Entity class.
 *
 * @author lingwu
 */
data class User(@NotNull @Pattern(regexp = "[a-zA-Z/d]{10,15}") val account: String?,
                @NotNull val password: String?,
                @NotNull @Pattern(regexp = ".{1,24}") val nickname: String?,
                val identityId: String?,
                var avatarPath: String?,
                @NotNull @Email val mail: String?)
